#include "DrainageSketcher.h"

#include <iostream>

DrainageSketcher::DrainageSketcher(Drainage * drainage)
{
	this->drainage = drainage;
}

DrainageSketcher::~DrainageSketcher(void)
{
}

void DrainageSketcher::draw()
{
	Color * drainageLineColor = this->drainage->getLineColor();
	Color * drainageBackgroundColor = this->drainage->getElementColor();
	Texture * drainageTexture = this->drainage->getTexture();
	Position * drainagePosition = this->drainage->getPosition();
	float drainageRadius = this->drainage->getRadius();

	if(drainageTexture != NULL) {
		SketcherHelper::getInstance()->drawCircle(drainagePosition,drainageRadius,drainageTexture,drainageLineColor);
	}else {
		SketcherHelper::getInstance()->drawCircle(drainagePosition,drainageRadius,drainageBackgroundColor,drainageLineColor);
	}
	
}
